package design_4_builder.demo2.builder;


/**
 * 抽象建造者
 */
public abstract class AbstractGameCharacterBuilder {


	// 产品
	protected Role role;

	public AbstractGameCharacterBuilder() {
		role = new Role();
	}

	public Role builde() {
		return role;
	}

	// 身体
	public	AbstractGameCharacterBuilder theBody(String theBody) {
		role.setTheBody(theBody);
		return this;
	}

	// 头部
	public	AbstractGameCharacterBuilder head(String head) {
		role.setHead(head);
		return this;
	}

	// 手部
	public	AbstractGameCharacterBuilder hand(String hand) {
		role.setHand(hand);
		return this;
	}

	// 腿部
	public	AbstractGameCharacterBuilder leg(String leg) {
		role.setLeg(leg);
		return this;
	}

	// 武器
	//abstract AbstractGameCharacterBuilder weapons(String weapons);

}
